package app.beit.finportal.config;

import app.beit.finportal.bean.MSConfigBean;

public class MasterConfig {
	
	private static MasterConfig instance;
	
	private static MSConfigBean deployBean;
	private static MSConfigBean fileLocationBean;

	private MasterConfig(){
	}
	
	public static MasterConfig getInstance() throws Exception {
	      if(instance == null) {
	         instance = new MasterConfig();
	      }
	      return instance;
	}

	public MSConfigBean getDeployBean() {
		return deployBean;
	}

	public void setDeployBean(MSConfigBean deployBean) {
		MasterConfig.deployBean = deployBean;
	}

	public MSConfigBean getFileLocationBean() {
		return fileLocationBean;
	}

	public void setFileLocationBean(MSConfigBean fileLocationBean) {
		MasterConfig.fileLocationBean = fileLocationBean;
	}
	
	public static void setNewInstance(){
		instance = null;
	}
	
}
